package com.itheima.Test;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class Test006 {
    public static void main(String[] args) throws IOException {
        /*
        请编写程序，定义一个Properties对象，存储以下内容：
			Properties pro = new Properties();
			pro.setProperty(“品名”,”Iphone11 Pro Max”);
			pro.setProperty(“颜色”,”暗夜绿”);
			pro.setProperty(“存储容量”,”256G”);
			pro.setProperty(“价格”,”10899”);
			//请将上述内容写入到文件：”test3_1.txt”中
         */
        Properties p  = new Properties();
        p.setProperty("品名","Iphone11 Pro Max");
        p.setProperty("颜色","暗夜绿");
        p.setProperty("存储容量","256G");
        p.setProperty("价格","10899");
        p.store(new FileWriter("Day16codes\\aaa\\123.txt"),"Iphone11 Pro Max");


    }
}
